package com.cros.pruebas2;

public class AssignmentsAndVariables {
	


}

class Octal {
	public static void main(String [] args) {
		int six = 06; // Equal to decimal 6
		int seven = 07; // Equal to decimal 7
		int eight = 010; // Equal to decimal 8
		int nine = 011; // Equal to decimal 9
		System.out.println("Octal 010 = " + eight);
	}
}


/*You are allowed up to 16 digits in a hexadecimal
number, not including the prefix 0x or the optional suffix extension L*/
class HexTest {
	public static void main (String [] args) {
		int x = 0X0001;
		int y = 0x7fffffff;
		int z = 0xDeadCafe;
		System.out.println("x = " + x + " y = " + y + " z = " + z);
	}
}

class FloatTests{
	public static void main(String argv[]){
		//float f = 23.467890; // Compiler error, possible loss
		
		// of precision
		float g = 49837849.029847F; // OK; has the suffix "F"
		
		double d = 110599.995011D; // Optional, not required
		double f = 987.897; // No 'D' suffix, but OK because the
		// literal is a double by default
		
		//int x = 25,343; // Won't compile because of the comma
		
		boolean t = true; // Legal
		//boolean f = 0; // Compiler error!
		
		
		char a = 'a';
		char b = '@';
								//Unicode value
		char letterN = '\u004E'; // The letter 'N'
		
		char j = 0x892; // hexadecimal literal
		char k = 982; // int literal
		char c = (char)70000; // The cast is required; 70000 is
								// out of char range
		
		char z = (char) -98; // Ridiculous, but legal
		
		char r = (char) -29; // Possible loss of precision; needs a cast without char
		char tw= (char) 70000; // Possible loss of precision; needs a cast without char
		
		char i = '\"'; // A double quote
		char o = '\n'; // A newline
		
		String s = "Bill Joy";
		System.out.println("Bill" + " Joy");
		
	}
}